package top.tenebrous.termbor.rpc.spi.factory;

import top.tenebrous.termbor.rpc.spi.SPI;

/**
 * @program: termbor-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-24 09:03
 **/
@SPI(value = "spi")
public interface ExtensionFactory {

    /**
     * 获取扩展类对象
     *
     * @param key
     * @param clazz
     * @return
     * @param <T>
     */
    <T> T getExtension(String key, Class<T> clazz);
}
